< previous page page_20 next page >

Page 20
Code Modules
Code, or source code, is written to make controls and forms respond to user interaction. Code is made up of variable declarations, constants, procedure or function declarations, statements, calls to the Windows API, loops, conditional constructs, and so on. Code modules are stored in ASCII text files with a .BAS extension. These are sometimes called standard modules.
Class Modules
Class modules allow you to create your own objects. Theyre the prototype for these objects, defining their properties and methods. Visual Basic allows for the creation of classes complete with properties and methods. Theres no inheritance yet, but a substantial benefit can still be gained by using these classes for encapsulation of code. Class modules are stored in files with a .CLS extension.
User Controls
You can build your own custom controls with Visual Basic 6. These custom controls are stored into a CTL file with any graphical elements contained within a CTX file.
Property Pages
Property pages are used within the context of user controls. These pages are used to view and change the properties of user controls in an easy to understand format. These pages are stored in a PAG file.
User Document (ActiveX Document)
User document is a somewhat misleading term. Using Visual Basic, you can design a form or application and give it a .VBD extension. This creates not only the VBD file but also the ActiveX DLL or EXE file needed to display the VBD file. This active document can then be contained within any container application such as Microsoft Binder or Internet Explorer.
IIS Applications
IIS applications are made up of WebClasses and WebItems. A WebClass is a DLL that runs under IIS 4.0 and has a set of WebItems, which can be HTML templates and/or classes that send out HTML to the browser. The designers you use with an IIS application store the information in a DSR (text) and DSX (binary) files.

 
< previous page page_20 next page >

If you like this book, buy it!